/*
 * Copyright (c) 2015 www.smarthome.com All rights reserved.
 * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.base.dao;

import java.util.List;

import com.smarthome.base.dao.base.BaseDao;
import com.smarthome.domain.bean.ShAccount;

/**
 * ShAccountDao 接口
 * @author KongXiangyu
 * @since 2015-09-07
 */
public interface ShAccountDao extends BaseDao<ShAccount,Long>{
	//自定义扩展
	/**
	 * 
	* @Title: queryShAccountsCount 
	* @Description: TODO(根据条件查询在线平台用户数) 
	* @param account
	* @return
	* long
	* @throws 
	* @author cyj
	 */
	long queryOnlineShAccountsCount(ShAccount account);

	/**
	 * 
	* @Title: queryShAccounts 
	* @Description: TODO(根据条件查询在线平台用户列表) 
	* @param account
	* @return
	* List<ShAccount>
	* @throws 
	* @author cyj
	 */
    List<ShAccount> queryOnlineShAccounts(ShAccount account);
    
    /**
	 * 
	* @Title: queryShAccountsCount 
	* @Description: TODO(根据条件查询平台用户数) 
	* @param account
	* @return
	* long
	* @throws 
	* @author cyj
	 */
	long queryShAccountsCount(ShAccount account);

	
	/**
	 * 
	* @Title: queryShAccounts 
	* @Description: TODO(根据条件查询平台用户列表) 
	* @param account
	* @return
	* List<ShAccount>
	* @throws 
	* @author cyj
	 */
    List<ShAccount> queryShAccounts(ShAccount account);
    
    /**
     * 
     * @param account
     * @return
     */
    List<ShAccount> selectShAccountByCon(ShAccount account);
    
    Integer selectShAccountCountByCon(ShAccount account);
    
    ShAccount selectShAccountById(Long id);
    
    List<ShAccount> selectShAccountByIds(Long... ids);
    
    /**
     * 
    * @Title: getShAccountIds 
    * @Description: 根据查询条件获取id列表
    * @param account
    * @return
    * List<String>
    * @throws 
    * @author cyj
     */
    List<String> getShAccountIds(ShAccount account);
    
}